home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5057 < prev    next >
Encoding:
Text File  |  1996-08-05  |  709 b   |  21 lines

  1. Newsgroups: comp.lang.c
  2. Path: novice.uwaterloo.ca!w3yu
  3. From: w3yu@novice.uwaterloo.ca (Wei Yu)
  4. Subject: Re: drand48() problems
  5. Sender: news@novice.uwaterloo.ca (Mr. News)
  6. Message-ID: <DMon7I.C4z@novice.uwaterloo.ca>
  7. Date: Mon, 12 Feb 1996 21:47:42 GMT
  8. References: <DMoE0p.BKs@novice.uwaterloo.ca>
  9. Nntp-Posting-Host: novice.uwaterloo.ca
  10. Organization: University of Waterloo
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Wei Yu (w3yu@novice.uwaterloo.ca) wrote:
  14. : Hi, I am trying to generate random numbers with the drand48() routine
  15. : available in UNIX C library. But apperantly, drand48() always returns 0.
  16.  
  17. problem solved, all I needed to do was to include the function prototype
  18.  
  19. extern double drand48();
  20.